public class DeviceManager {
    public static void manageNetworkDevices(NetworkDevice[] devices) {
        System.out.println("==== 网络设备管理 ===");
        for (NetworkDevice nd : devices) {
            nd.connectNetwork();
            System.out.println("IP地址：" + nd.getIpAddress());
        }
    }

    public static void manageUsbDevices(UsbDevice[] devices) {
        System.out.println("==== USB设备管理 ===");
        for (UsbDevice ud : devices) {
            ud.connectUsb();
            System.out.println("USB版本：" + ud.getUsbVersion());
        }
    }
}
